package cn.ibizlab.odoo.core.odoo_snailmail.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_snailmail.domain.Snailmail_letter;
import cn.ibizlab.odoo.core.odoo_snailmail.filter.Snailmail_letterSearchContext;

/**
 * 实体[Snailmail_letter] 服务对象接口
 */

public interface ISnailmail_letterService{
     void createBatch(List<Snailmail_letter> snailmail_letters, int batchSize) ;
     boolean remove(Integer id) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Snailmail_letter get(Integer id) ;
     Snailmail_letter get(Snailmail_letter snailmail_letter) ;
     void updateBatch(List<Snailmail_letter> snailmail_letters, int batchSize) ;
     boolean update(Snailmail_letter snailmail_letter) ;
     boolean create(Snailmail_letter snailmail_letter) ;

    /**
     * 查询集合 默认查询
     */
    Page<Snailmail_letter> searchDefault(Snailmail_letterSearchContext context) ;

    /**
     * 根据公司查询
     */
     Page<Snailmail_letter> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Snailmail_letter> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Snailmail_letter> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Snailmail_letter> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Snailmail_letter> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Snailmail_letter convert2Domain(cn.ibizlab.odoo.core.client.model.Isnailmail_letter model ,Snailmail_letter domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Isnailmail_letter convert2Model(Snailmail_letter domain , cn.ibizlab.odoo.core.client.model.Isnailmail_letter model);

}
